package com.nf;

public class FactoryA extends Factory {
    @Override
    public Product manufacture(String name) {
        if (name==null) {
            return new ProductA();
        }else {
            return new ProductA2019();
        }
    }
}
